package com.xcdh.orm.service.ddl.impl;

import com.xcdh.orm.ddl.DDLBase;
import com.xcdh.orm.mapper.ddl.oracle.OracleDDLDatabaseMapper;
import com.xcdh.orm.service.ddl.DDLDataBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * OracleDDLDataBaseServiceImpl
 * Created by wjg on 2023/12/1.
 */
@Service("oracleDDLDataBaseService")
public class OracleDDLDataBaseServiceImpl implements DDLDataBaseService {
    @Autowired
    private OracleDDLDatabaseMapper ddlDatabaseMapper ;
    @Override
    public List<DDLBase> showDataBases() {
        return ddlDatabaseMapper.showDataBases();
    }

    @Override
    public List<DDLBase> queryDataBases(DDLBase ddlBase) {
        return ddlDatabaseMapper.queryDataBases(ddlBase);
    }

    @Override
    public List<DDLBase> in(List<String> dataBaseNames) {
        return ddlDatabaseMapper.in(dataBaseNames);
    }
}
